<?php
namespace app\index\controller;
use think\Db;
class Newmedia extends Base{
    public function newmedia(){

    	$tiktok_banner=Db::name('tiktok_banner')->where('id',1)->find();

        $tiktok_operative_title=Db::name('tiktok_operative_title')->where('id',1)->find();
        $tiktok_operative=Db::name('tiktok_operative')->order('sort desc')->select();
        $tiktok_keepup_title=Db::name('tiktok_keepup_title')->where('id',1)->find();
        $tiktok_keepup=Db::name('tiktok_keepup')->order('sort desc')->select();
        $tiktok_fiveelements_title=Db::name('tiktok_fiveelements_title')->where('id',1)->find();
        $tiktok_fiveelements=Db::name('tiktok_fiveelements')->order('sort desc')->select();
        $tiktok_operaprocess=Db::name('tiktok_operaprocess')->order('sort desc')->select();

        $headquarters_branches=Db::name('headquarters_branches')->order('sort desc')->select();
        $others=Db::name('others')->where('state',1)->order('sort desc')->select();
        $cases=Db::name('cases')->where('type',5)->order('sort desc')->limit(6)->select();
        $this->assign('system_set',$this->system_set());
		$this->assign('tiktok_banner',$tiktok_banner);

        $this->assign('tmdurl',$this->request->domain());
        $this->assign('others',$others);
        $this->assign('tiktok_operative_title',$tiktok_operative_title);
        $this->assign('tiktok_operative',$tiktok_operative);
        $this->assign('tiktok_keepup_title',$tiktok_keepup_title);
        $this->assign('tiktok_keepup',$tiktok_keepup);
        $this->assign('tiktok_fiveelements_title',$tiktok_fiveelements_title);
        $this->assign('tiktok_fiveelements',$tiktok_fiveelements);
        $this->assign('tiktok_operaprocess',$tiktok_operaprocess);
        $this->assign('headquarters_branches',$headquarters_branches);
        $this->assign('cases',$cases);
        return $this->fetch();
    }
}
